import fetch from "@/utils/fetch"


//获取用户信息
export function getuserinfo(data) {
    return fetch({
        url: '/API/user/getuserinfo',
        method: 'get',
        params: data
    });
}
//用户注册
export function reguser(data) {
    return fetch({
        url: 'API/user/reguser',
        method: 'post',
        data: data
    });
}
//用户登录
export function loginuser(data){
    return fetch({
        url:"API/user/loginuser",
        method: "post",
        data: data
    })
}
//注销登录
export function logoutLogin(){
    return fetch({
        url: "API/user/logoutLogin",
        method: "post",
    })
}